﻿using BarManager.Core.BusinessRules.Interfaces.Validator;
using BarManager.Core.BusinessRules.Specification;
using BarManager.Core.DomainService;
using BarManager.Core.Entity;

namespace BarManager.Core.BusinessRules.Validator
{
    public class MesaValidator : BaseValidator<Mesa>, IMesaValidator
    {
        public MesaValidator(IMesaRepository repository)
        {
            Rules.Add(new Rule<Mesa>(ValidatorType.Add, new MesaAddSpecification(repository)));
           // Rules.Add(new Rule<Mesa>(ValidatorType.Update, new MesaAddSpecification(repository)));
        }
    }
}
